from pydantic_settings import BaseSettings
from typing import Optional

class CozeSettings(BaseSettings):
    COZE_API_KEY: str = "pat_g5vqvmZU8VpEz1w8wAFAB3GfwmXeBNG5I2yTSP3GtoyrLPob0uS093DEURRzEXVz"  # 实际使用时应该从环境变量获取
    COZE_BOT_ID: str = "7475300642966224915"
    COZE_USER_ID: str = "123123"
    COZE_API_URL: str = "https://api.coze.cn/v3/chat"
    STREAM: bool = True
    AUTO_SAVE_HISTORY: bool = True

    class Config:
        env_prefix = "COZE_"
        case_sensitive = True

coze_settings = CozeSettings()
